package cn.ehanghai.iot.back.mapper;

import cn.ehanghai.iot.back.domain.UserMessage;
import cn.ehanghai.iot.common.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: xumf
 * @Date: 2019/6/26 17:28
 */
public interface UserMessageMapper extends BaseMapper<UserMessage> {

    UserMessage getByUserMessage(Long userId);

    UserMessage getByUserMessageByOpenId(String openId);

    /**
     * 获取留言列表
     *
     * @return
     */
    List<UserMessage> getUserMessageList(Map<String, Object> map);

    /**
     * 获取数量
     *
     * @param map
     * @return
     */
    int getUserMessageCount(Map<String, Object> map);

    List<UserMessage> getMessageWallList();


}
